﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Model;
using BLL;
public partial class services : System.Web.UI.Page
{
  
     protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadLeft();
        }
    }

    private void LoadLeft()
    {
        BllServices bll = new BllServices();
       
        var list = bll.GetList(c =>true, true, c => c.sort);
        StringBuilder sb = new StringBuilder();
       
        for (int i = 0; i < list.Count; i++)
        {
            tb_services obj = list[i];
            string name = obj.name;
            string remark = obj.remark;
           
            sb.Append(string.Format(@"<li onclick='getSer({2})'><span class='s_title'>>> {0}</span><span class='s_infor'>{1}</span></li>",name, remark,obj.id));
            
        }
        left.Text = sb.ToString();
        right.Text = list[0].content;
    }
}